package com.centaur0.springioc;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Scope;

import uk.ltd.getahead.dwr.WebContext;
import uk.ltd.getahead.dwr.WebContextFactory;

@SuppressWarnings("deprecation")
@Configuration
public class SpringConfiguration {

	/*
	@Autowired
	public SpringConfiguration(ApplicationContext ctx){
		Application.setApplicationContext(ctx);
	}
	*/
	
	@Bean(name="dwrContext")
	@Scope(value="prototype")
	public WebContext getContextoDWR(){
		return WebContextFactory.get();
	}
}
